package com.iot.system.mapper;


import com.iot.system.domain.LineHourEnergyInfo;

import java.util.List;

/**
 * 产线小时能耗Mapper接口
 * 
 * @author iot
 * @date 2025-02-12
 */
public interface LineHourEnergyInfoMapper 
{
    /**
     * 查询产线小时能耗
     * 
     * @param id 产线小时能耗主键
     * @return 产线小时能耗
     */
    public LineHourEnergyInfo selectLineHourEnergyInfoById(Long id);

    /**
     * 查询产线小时能耗列表
     * 
     * @param lineHourEnergyInfo 产线小时能耗
     * @return 产线小时能耗集合
     */
    public List<LineHourEnergyInfo> selectLineHourEnergyInfoList(LineHourEnergyInfo lineHourEnergyInfo);

    /**
     * 新增产线小时能耗
     * 
     * @param lineHourEnergyInfo 产线小时能耗
     * @return 结果
     */
    public int insertLineHourEnergyInfo(LineHourEnergyInfo lineHourEnergyInfo);

    /**
     * 修改产线小时能耗
     * 
     * @param lineHourEnergyInfo 产线小时能耗
     * @return 结果
     */
    public int updateLineHourEnergyInfo(LineHourEnergyInfo lineHourEnergyInfo);

    /**
     * 删除产线小时能耗
     * 
     * @param id 产线小时能耗主键
     * @return 结果
     */
    public int deleteLineHourEnergyInfoById(Long id);

    /**
     * 批量删除产线小时能耗
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteLineHourEnergyInfoByIds(Long[] ids);

    /***
     * 判断是否已经存在该产线小时能耗
     * @param lineHourEnergyInfo
     * @return
     */
    public int judgmentLineHourEnergy(LineHourEnergyInfo lineHourEnergyInfo);
}
